﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using UmlDesigner.Model;

namespace UmlDesigner
{
    public partial class NoteEditForm : Form
    {
        NoteWidget note = null;

        internal NoteEditForm(NoteWidget n)
        {
            InitializeComponent();
            Icon = Properties.Resources.ApplicationIcon;

            note = n;
            noteRichTextBox.Text = note.noteContents;
        }

        private void richTextBox1_TextChanged(object sender, EventArgs e)
        {

        }

        private void okButton_Click(object sender, EventArgs e)
        {
            note.noteContents = noteRichTextBox.Text;
        }


    }
}
